package com.mmd.admin.model.pojo.request.crm;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("轮播图新增编辑参数")
public class CrmServeSurveyAddOrEditParam {

    @ApiModelProperty("id")
    private Long id=0L;

    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Integer sort;


    @ApiModelProperty("选项参数")
    @NotEmpty(message = "选项参数最少一条数据")
    private List<CrmServeSurveyParam> paramList;

}
